package org.yonggan.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import org.yonggan.UserFeignClient;
import org.yonggan.entity.User;


@RestController
public class MovieController {

    @Autowired
    private UserFeignClient feignClient;

    @GetMapping("/movie/{id}")
    public User findById(@PathVariable Long id) {
        return feignClient.findById(id);
    }
}
